home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 13 - 1997 (partial) / 13.04 Apr 97 / OpenDocExtentions / ImagePart / _SOM_ / som_ImagePart.idl < prev    next >
Encoding:
Text File  |  1996-06-19  |  3.3 KB  |  156 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ImagePart.idl
  3.  
  4.     Contains:    ImagePart object interface
  5.  
  6.     Written by:    Steve Smith
  7.  
  8.     Copyright:    © 1994-95 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     -------------------------------------------------------------------
  11.  
  12.     Notes:        If you need to add a new method to ImagePart you should
  13.                 make that change in the C++ implementation. Adding new
  14.                 methods to the SOM interface should only be necessary if
  15.                 the method must be publically exported from the library.
  16.                 In that case, you will have to run the SOM compiler/
  17.                 emitter.
  18. */
  19.  
  20.  
  21. #ifndef _IMAGEPART_
  22. #define _IMAGEPART_
  23.  
  24. #ifndef _PART_
  25. #include "Part.idl"
  26. #endif 
  27.  
  28. #ifndef _IMAGEPARTVERS_
  29. #include "ImagePartVers.h"
  30. #endif
  31.  
  32. //==============================================================================
  33. // Classes used by this interface
  34. //==============================================================================
  35.  
  36. #ifdef __PRIVATE__
  37. //==============================================================================
  38. // Implementation Types
  39. //==============================================================================
  40.  
  41. typedef somToken ImagePart;
  42. #endif 
  43.  
  44. //==============================================================================
  45. // som_ImagePart
  46. //==============================================================================
  47.  
  48. module KSS
  49. {
  50.     interface som_ImagePart : ODPart
  51.     {
  52. #ifdef __SOMIDL__
  53.         implementation
  54.         {
  55.             majorversion = somClassMajorVersion;
  56.             minorversion = somClassMinorVersion;
  57.             
  58.             functionprefix = som_ImagePart__;
  59.             override:
  60.                 //# ODObject methods
  61.                 somInit,
  62.                 somUninit,
  63.                 AcquireExtension,
  64.                 HasExtension,
  65.                 Purge,
  66.                 ReleaseExtension,
  67.                 
  68.                 //# ODRefCountedObject methods
  69.                 Release,
  70.                 
  71.                 //# ODPersistentObject methods.
  72.                 CloneInto,
  73.                 Externalize,
  74.                 ReleaseAll,
  75.                 
  76.                 //# ODPart methods
  77.                 AbortRelinquishFocus,
  78.                 AcquireContainingPartProperties,
  79.                 AdjustBorderShape,
  80.                 AdjustMenus,
  81.                 AttachSourceFrame,
  82.                 BeginRelinquishFocus,
  83.                 CanvasChanged,
  84.                 CanvasUpdated,
  85.                 ChangeKind,
  86.                 ClonePartInfo,
  87.                 CommitRelinquishFocus,
  88.                 ContainingPartPropertiesUpdated,
  89.                 CreateEmbeddedFramesIterator,
  90.                 CreateLink,
  91.                 DisplayFrameAdded,
  92.                 DisplayFrameClosed,
  93.                 DisplayFrameConnected,
  94.                 DisplayFrameRemoved,
  95.                 DisposeActionState,
  96.                 DragEnter,
  97.                 DragLeave,
  98.                 DragWithin,
  99.                 Draw,
  100.                 Drop,
  101.                 DropCompleted,
  102.                 EditInLinkAttempted,
  103.                 EmbeddedFrameUpdated,
  104.                 EmbeddedFrameSpec,
  105.                 ExternalizeKinds,
  106.                 FacetAdded,
  107.                 FacetRemoved,
  108.                 FocusAcquired,
  109.                 FocusLost,
  110.                 FrameShapeChanged,
  111.                 FulfillPromise,
  112.                 GeometryChanged,
  113.                 GetPrintResolution,
  114.                 HandleEvent,
  115.                 HighlightChanged,
  116.                 InitPart,
  117.                 InitPartFromStorage,
  118.                 LinkStatusChanged,
  119.                 LinkUpdated,
  120.                 Open,
  121.                 PresentationChanged,
  122. #ifndef _PLATFORM_MACINTOSH_
  123.                 ReadActionState,    //# Mac doesn't support persistent undo
  124. #endif
  125.                 ReadPartInfo,
  126.                 RedoAction,
  127.                 RemoveEmbeddedFrame,
  128.                 RequestEmbeddedFrame,
  129.                 RequestFrameShape,
  130.                 RevealFrame,
  131.                 RevealLink,
  132.                 SequenceChanged,
  133.                 UndoAction,
  134.                 UsedShapeChanged,
  135.                 ViewTypeChanged,
  136. #ifndef _PLATFORM_MACINTOSH_
  137.                 WriteActionState,    //# Mac doesn't support persistent undo
  138. #endif
  139.                 WritePartInfo;
  140.         
  141. #ifdef __PRIVATE__
  142.             passthru C_xih =
  143.                 "class ImagePart;";
  144.         
  145.             ImagePart*        fPart;
  146.         
  147. #endif //__PRIVATE__
  148.         };
  149.         
  150. #endif //__SOMIDL__
  151.     };
  152. };
  153.  
  154. #endif //__IMAGEPART__
  155.  
  156.